package com.san.hkhospital.service;

import java.util.List;
import com.san.hkhospital.entity.Medicine;
import com.san.hkhospital.entity.MedicineExample;
import com.san.hkhospital.dto.Medicine1;
import com.san.hkhospital.vo.MedicineVo;

/**
 * ClassName:MedicineService
 * PackageName:com.san.hkhospital.service
 * Description:
 *
 * @Author:yy
 * @CreatedAt:2024/11/13 14:38
 * 
 */
 
 
public interface MedicineService{


    long countByExample(MedicineExample example);

    int deleteByExample(MedicineExample example);

    int deleteByPrimaryKey(Integer medId);

    int insert(Medicine record);

    int insertSelective(Medicine record);

    List<Medicine> selectByExample(MedicineExample example);

    Medicine selectByPrimaryKey(Integer medId);

    int updateByExampleSelective(Medicine record,MedicineExample example);

    int updateByExample(Medicine record,MedicineExample example);

    int updateByPrimaryKeySelective(Medicine record);

    int updateByPrimaryKey(Medicine record);

        //展示药单目录
        List<Medicine> medicineList();
        //添加新药物
        boolean addMedicine(Medicine medicine);
        //删除药品
        boolean deleteMedicine(Integer id);
        //修改药单价格
        boolean updateMedPrice(Integer medId, Double medPrice);
        //修改药单全部信息
        int updateMedicine(Medicine medicine);

        List<MedicineVo> search(Medicine1 medicine1);


}
